package com.ubing.boot.notesforjava.service;

import com.ubing.boot.notesforjava.domel.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ubing.boot.notesforjava.response.Response;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ubing
 * @since 2023-02-17
 */
public interface IUserInfoService extends IService<UserInfo> {
    Response checkToken(HttpServletRequest request);

    Response login(UserInfo userInfo);

    Response register(UserInfo userInfo);

    Response avatarUpload(MultipartFile file,String name) throws IOException, InterruptedException;

    Response validateUserName(UserInfo userInfo);

}
